package com.boot.main.mapper;

import com.boot.main.entity.CcomDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CcomDictMapper {
    List<CcomDict> getDicts(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("name") String name);
    int getTotalCount();
    int saveDict(CcomDict dict);
    int updateDict(CcomDict dict);
    int deleteDict(Long id);
}
